package pl.register.android.activities.correlation.logic;

import pl.register.android.student.Student;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Mateusz Strzelecki
 * @since 2013-05-16
 */
public class SelectedStudentsHolder {
    private List<Student> selectedStudents;

    public SelectedStudentsHolder() {
        selectedStudents = new ArrayList<Student>();
    }

    public List<Student> getStudents() {
        return selectedStudents;
    }

    public void add(Student student) {
        selectedStudents.add(student);
    }

    public void remove(Student student) {
        selectedStudents.remove(student);
    }

    public boolean isNotEmpty() {
        return !selectedStudents.isEmpty();
    }

    public boolean contains(Student student) {
        return selectedStudents.contains(student);
    }
}